.ajaxError(function(<+request, settings+>) {
  <+//stuff to do when an AJAX call returns an error+>;
});
<++>